package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-29
 */
@TableName("t_partner_org_over_weight_route")
class TPartnerOrgOverWeightRoute : Model<TPartnerOrgOverWeightRoute>() {

    @TableId(value = "id", type = IdType.ID_WORKER)
    var id: Long? = null
    @TableField("partner_no")
    var partnerNo: String? = null
    /**
     * REALITY-商户真实的
            VIRTUAL-商户虚拟的
            BOTH-两者都包括
     */
    @TableField("partner_type")
    var partnerType: String? = null
    @TableField("overorg_code")
    var overorgCode: String? = null
    @TableField("org_code")
    var orgCode: String? = null
    var weight: Int? = null
    var priority: Int? = null
    /**
     * Y-启用
            N-关闭
     */
    @TableField("use_flag")
    var useFlag: String? = null
    @TableField("start_date")
    var startDate: Date? = null
    @TableField("expiry_date")
    var expiryDate: Date? = null
    @TableField("created_by")
    var createdBy: String? = null
    @TableField("created_time")
    var createdTime: Date? = null
    @TableField("audited_by")
    var auditedBy: String? = null
    @TableField("audited_time")
    var auditedTime: Date? = null
    /**
     * N-未审核
            Y-已审核
            U-已修改
     */
    @TableField("audited_flag")
    var auditedFlag: String? = null
    @TableField("updated_by")
    var updatedBy: String? = null
    @TableField("updated_time")
    var updatedTime: Date? = null
    @TableField("ori_id")
    var oriId: String? = null
    @TableField("tenant_id")
    var tenantId: String? = null
    @TableField("lock_version")
    var lockVersion: Long? = null
    var rsv1: String? = null
    var rsv2: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "TPartnerOrgOverWeightRoute{" +
        ", id=" + id +
        ", partnerNo=" + partnerNo +
        ", partnerType=" + partnerType +
        ", overorgCode=" + overorgCode +
        ", orgCode=" + orgCode +
        ", weight=" + weight +
        ", priority=" + priority +
        ", useFlag=" + useFlag +
        ", startDate=" + startDate +
        ", expiryDate=" + expiryDate +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", auditedBy=" + auditedBy +
        ", auditedTime=" + auditedTime +
        ", auditedFlag=" + auditedFlag +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", oriId=" + oriId +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        "}"
    }
}
